package com.example.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.domain.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.domain.model.UserDTO;

/**
* @author Administrator
* @description 针对表【user】的数据库操作Service
* @createDate 2023-03-20 09:46:36
*/
public interface UserService extends IService<User> {


    User getById(String id);

    User getByName(String userName);

    IPage<UserDTO> getlist(Page page);

    boolean register(User user);

    boolean update(String id,User user);

    boolean delete(String id);



}
